package com.xnsy.jishexiangmu.service.school.impl;

import com.xnsy.jishexiangmu.mapper.SchoolMapper;
import com.xnsy.jishexiangmu.pojo.School;
import com.xnsy.jishexiangmu.pojo.SchoolActive;
import com.xnsy.jishexiangmu.service.school.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchoolServiceImpl implements SchoolService {
    @Autowired
    private SchoolMapper schoolMapper;
    @Override
    public List<School> get() {
        return schoolMapper.get();
    }

    @Override
    public List<SchoolActive> getAll() {
        return schoolMapper.getAll();
    }

    @Override
    public SchoolActive getOne(Integer id) {

        return schoolMapper.getOne(id);
    }

    @Override
    public School getById(Integer id) {
        return schoolMapper.getById(id);
    }

    @Override
    public List<School> getSome(String name) {
        return schoolMapper.getSome(name);
    }
}
